package com.mall.user.mq;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jms.core.JmsMessagingTemplate;
import org.springframework.stereotype.Component;


/**
 * 生产商
 *
 * @author ASUS
 * @date 2021/07/18
 */
@Component
public class Producer {

    @Autowired
    private JmsMessagingTemplate jmsMessagingTemplate;

    public void sendYzm(String message){
        jmsMessagingTemplate.convertAndSend("sunyue",message);
    }

}
